//
//  NExtViewController.swift
//  Swifit_Learn
//
//  Created by Clover on 2018/3/30.
//  Copyright © 2018年 youbing. All rights reserved.
//

import UIKit

class NExtViewController: UIViewController {
    var name:NSString?
    var age:NSInteger?
    
    override func viewDidLoad() {
    super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        let age =  self.getAge()
        print(age)
        print(self.getName())
        self.title = "hello World"
    }
    
}

extension NExtViewController{
    func getAge() -> NSInteger{
        return self.age!
    }
    func getName() -> NSString {
        return self.name!
    }
}

